#!/bin/bash



files=(

  ".gitignore"

  "docker_env_init.sh"

  "myhome/build_config/build_firmware.sh"

  "myhome/buildroot_init_env.sh"

  "myhome/ui/ac-server/build.sh"

  "myhome/ui/ac-server/src/ACServer/workspace.code-workspace"

  "myhome/ui/ac-server/webpack.config.js"

  "myhome/ui/apps-index/build.sh"

  "myhome/ui/apps-index/package.json"

  "myhome/ui/apps-index/webpack.config.js"

  "myhome/ui/buildapp.sh"

  "myhome/ui/react-app/build.sh"

  "myhome/ui/react-app/webpack.config.js"

  "myhome/wifibase-packages/build_openwrt_package.sh"

  "myhome/wifibase-packages/wallfacer/ac-server/files/etc/init.d/ac-server"

  "myhome/wifibase-packages/wallfacer/ac-server/files/etc/rc.d/S99ac-server"

  "myhome/wifibase-packages/wallfacer/apps-index/files/etc/init.d/appsindex"

  "myhome/wifibase-packages/wallfacer/apps-index/files/etc/rc.d/S99appsindex"

  "script/banner.sh"

  "script/entrypoint.sh"

  "script/node_install.sh"

  "buildinit_for_lede.sh"

  "buildinit_for_openwrt.sh"

)



for file in "${files[@]}"; do

  if [ -f "$file" ]; then

    dos2unix "$file"

    echo "Converted $file to Unix line endings."

  else

    echo "File $file does not exist."

  fi

done
